<!DOCTYPE html>
<html>
<head>
<title></title> #parse("sys/header.html")
<style>
.col-center-block {
	float: none;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
</style>

</head>
<body>
	<div id="rrapp" v-cloak>
		<div v-show="showList">
			<div class="grid-btn">
				<div class="form-group col-sm-2">
					<input type="text" class="form-control" v-model="q.apliName"
						@keyup.enter="query" placeholder="应用名称">
				</div>
				<a class="btn btn-default" @click="query">查询</a>
				#if($shiro.hasPermission("taplication:save")) <a
					class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
				#end #if($shiro.hasPermission("taplication:update")) <a
					class="btn btn-primary" @click="update"><i
					class="fa fa-pencil-square-o"></i>&nbsp;修改</a> #end
				#if($shiro.hasPermission("taplication:delete")) <a
					class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
				#end
			</div>
			<table id="jqGrid"></table>
			<div id="jqGridPager"></div>
		</div>

		<div v-show="!showList" class="panel panel-default">
			<div class="panel-heading">{{title}}</div>
			<form role="form" class="form-horizontal " id="aplication">
				<div class="form-group ">
					<div class="col-sm-2 control-label">应用名称</div>
					<div class="col-sm-10">
						<input type="text" class="form-control" id="apliName"
							v-model="tAplication.apliName" placeholder="应用名称"
							datatype="s2-16" nullmsg="请输入应用名！" errormsg="应用名至少2个字符,最多16个字符！" />
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-2 control-label">应用标识名</div>
					<div class="col-sm-10">
						<input type="text" class="form-control"
							v-model="tAplication.apliCode" placeholder="标识名"
							datatype="apliCode" errormsg="请输入正确格式(字母数字下划线4－15位)" />
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-2 control-label">标志位</div>
					<div class="col-sm-10">
						<input type="text" class="form-control"
							v-model="tAplication.apliBiz" placeholder="标志位" datatype="n1-2"
							errormsg="请输入2位数字" />
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-2 control-label">http服务的地址</div>
					<div class="col-sm-10">
						<input type="text" class="form-control"
							v-model="tAplication.apliAddress" placeholder="http服务的地址" />
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-2 control-label"></div>
					<input type="button" id="btn" class="btn btn-primary"
						@click="saveOrUpdate" value="确定" /> &nbsp;&nbsp;<input
						type="button" class="btn btn-warning" @click="reload" value="返回" />
				</div>
			</form>
		</div>
	</div>

	<script
		src="${rc.contextPath}/js/sys/taplication.js?_${date.systemTime}"></script>
</body>
</html>